package com.haibo.controller;

import org.springframework.web.bind.annotation.*;

/**
 * @Author : 一叶浮萍归大海
 * @Date: 2024/3/30 0:29
 * @Description:
 */
@RequestMapping(value = "/cors2")
@RestController
public class CorsController2 {

    @GetMapping("/get/hello")
    public String hello1() {
        return "cors2 GET Hello!";
    }

    @PostMapping("/post/hello")
    public String hello2() {
        return "cors2 POST Hello!";
    }

}
